from pydantic import BaseModel


class AddTask(BaseModel):
    name: str
    description: str | None


class Task(AddTask):
    id: int


class GetTaskList(BaseModel):
    tasks: list[Task]


class UpdateTask(AddTask):
    pass


class DeleteTask(BaseModel):
    result: bool
